package net.zjitc;

import java.util.Scanner;

/**
 * @author 3505
 * @version 1.0
 * @date 2018/6/27
 */
public class CharRoom {
    public static void main(String[] args) {
        System.out.println("欢迎进入聊天室");
        Scanner in=new Scanner(System.in);
        System.out.println("请输入本程序发送端端口号");
        int sendPort=in.nextInt();
        System.out.println("请输入本程序接收端端口号");
        int receivePort=in.nextInt();
        System.out.println("聊天程序启动");
        new Thread(new SendTask(sendPort),"发送端任务").start();
        new Thread(new ReceiveTask(receivePort),"发送端任务").start();
    }
}
